using System;
using System.Collections.Generic;
using EndToEndSilverlightDemo.NorthWindServiceReference;
using EndtoEndSilverlightDemo;
namespace EndtoEndSilverlightDemo.Tests
{
    public class ProductSearchServiceStub : IProductSearchService
    {
        public bool SearchWasCalled=false;
        public string SearchString=string.Empty;
        public event EventHandler<EndToEndSilverlightDemo.EventArgs<IEnumerable<Product>>> GetProductsCompleted;

        public void GetProductsAsync(string productNamePrefix)
        {
            SearchWasCalled = true;
            SearchString = productNamePrefix;
        }
    }
}